<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <title>服务设备</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link href="/dist/plugins/umeditor1.2.3-src/themes/default/_css/umeditor.css" rel="stylesheet" />
    <link rel="stylesheet" href="/dist/plugins/webuploader-0.1.5/webuploader.css">
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=e9c5bb62">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=66b457d6">
    <style>
        table input {
            border: none;
            width: 100%;
        }

        .lineOne {
            text-align: left;
        }

        .lineOne span {
            max-height: 20px;
            line-height: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            text-align: left;
        }

        .div-td-content-more {
            position: absolute;
            height: auto;
            z-index: 999;
            line-height: 20px;
            background-color: #d3e8fd;
            padding: 8px 6px;
            border: 1px solid #e8e8ea;
            display: none;
        }

        .div-td-content-more i {
            width: 15px;
            height: 12px;
            background: url("/dist/img/more-icon.png");
            position: absolute;
            left: 50px;
            top: -12px;
        }
        input[type=text], input[type=tel], input[type=number], select {
            box-sizing: border-box;
            border-width: 0px;
            border-style: none;
            padding-right: 0px !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
            margin-left: 0px !important;
            margin-right: 0px !important;
            margin-top: 0px !important;
            margin-bottom: 0px !important;
            padding-left: 6px;
        }

        input[type=text], input[type=tel], input[type=number], select {
            height: 24px;
            width: 100%;
            border: none;
            outline: none;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>

<body>
<section class="content" id="app" v-cloak=>
    <div class="div-td-content-more"><i></i></div>
    <div id="div" style="margin-top: 12px">
        <div style="float: left">
            <div class="box-body no-padding iframeH2" style="overflow: auto;margin-left: -10px;margin-top:-20px"
                 id="scrollDiv">
                <div id="progress" class="wyui-progress"></div>
                <table class="table  table-bordered text-center" id="week" >
                    <th colspan="6" style="min-width: 300px;width:1155px;height: 30px;background-color:#F2F2F2"><span
                            style="text-align:center;height:18px">设备信息</span></th>
                    <tr  style="height:30px;" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">提货日期</td>
                        <td style="width: 190px;" >
                            <input type="text" @focus="showDatePicker($event,i)"  v-if="pageType=='edit'"/>
                            <span v-else>2018-05-19</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">品牌</td>
                        <td style="width: 190px;">
                            <select id="testBran" style="width:190px;" v-if="pageType=='edit'">
                            <option id="selBran" value="请选择品牌" >请选择品牌</option>
                                <option  value="竹内" >竹内</option>
                                <option  value="凯斯" >凯斯</option>
                                <option  value="洋马" >洋马</option>
                                <option  value="利勃海尔" >利勃海尔</option>
                            </select>
                            <span v-else>约翰迪尔</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">设备类型</td>
                        <td style="width: 190px;">
                            <select id="testType" style="width:190px;" v-if="pageType=='edit'">
                                <option id="selType" value="请选择设备类型" >请选择设备类型</option>
                                <option  value="挖掘机" >挖掘机</option>
                                <option  value="破碎机" >破碎机</option>
                                <option  value="筛分机" >筛分机</option>
                                <option  value="装载机" >装载机</option>
                            </select>
                            <span v-else>挖掘机</span></td>
                    </tr>
                    <tr  style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">机型</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>E210SC</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">斗容</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>2.0m3</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">铲斗类型</td>
                        <td style="width: 190px;" >
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>大铲斗</span></td>
                    </tr>
                    <tr class="td-row2 td-value" style="height:30px">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">序列号</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>20183120312</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">状态</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>新机</span> </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">库存地</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>太原市小店区</span></td>
                    </tr>
                    <tr class="td-row2 td-value" style="height:30px">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">生产日期</td>
                        <td style="width: 190px;">
                            <input type="text" @focus="showDatePicker($event,i)" v-if="pageType=='edit'"/>
                            <span v-else>2018-01-12</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">在库时长</td>
                        <td style="width: 190px;">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>20天</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">是否可融资</td>
                        <td style="width: 190px;">
                            <select style="width:190px;"  v-if="pageType=='edit'" type="text">
                                <option  value="是">是</option>
                                <option  value="否">否</option>
                            </select>
                            <span v-else>是</span></td>
                    </tr>
                    <th colspan="6" style="min-width: 300px;width:1155px;height: 30px;background-color:#F2F2F2"><span
                            style="text-align:center;height:18px">提货信息</span></th>
                    <tr  style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">购车公司</td>
                        <td style="width: 190px;">
                            <select id="testCom" style="width:190px;" v-if="pageType=='edit'">
                                <option id="selCom" value="请选择公司" >请选择公司</option>
                                <option  value="湖南清源" >湖南清源</option>
                                <option  value="吉林清源" >吉林清源</option>
                            </select>
                            <span v-else>湖南清源</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">付款方式</td>
                        <td style="width: 190px;">
                            <select id="testMoney" style="width:190px;" v-if="pageType=='edit'">
                                <option  value="全款" >全款</option>
                                <option  value="分期" >分期</option>
                                <option  value="融资" >融资</option>
                            </select>
                            <span v-else>全款</span></td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">提货合同</td>
                        <td style="width: 190px;">
                            <div id="divUpload">
                                <span >上传附件</span>
                            </div>
                            <!--<div id="divUploadedFiles4" v-if="pageType=='look'">-->
                                <!--<div  class="progressobj">-->
                                    <!--<input type="button" class="IcoNormal" style="float:left;"/>-->
                                    <!--<div class="filename" style="float:left;">-->
                                       <!--合同列表-->
                                    <!--</div>-->
                                    <!--<div class="delfile">-->
                                        <!--<a href="javascript:void(0);"-->
                                           <!--v-on:click="download(attach.url,attach.name)">下载</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">提货价格</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>500000</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">GPS费</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>2000</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">配件费用</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>800</span>
                        </td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">配件说明</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>配件齐全</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">发票</td>
                        <td style="width: 190px">
                            <div id="divUpload1" >
                                <span >上传附件</span>
                            </div>
                            <!--<div id="divUploadedFiles3" v-if="pageType=='look'">-->
                                <!--<div  class="progressobj">-->
                                    <!--<input type="button" class="IcoNormal" style="float:left;"/>-->
                                    <!--<div class="filename" style="float:left;">-->
                                        <!--发票-->
                                    <!--</div>-->
                                    <!--<div class="delfile">-->
                                        <!--<a href="javascript:void(0);"-->
                                           <!--v-on:click="download(attach.url,attach.name)">下载</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">合格证</td>
                        <td style="width: 190px">
                            <div id="divUpload2" >
                                <span >上传附件</span>
                            </div>
                            <!--<div id="divUploadedFiles1" v-if="pageType=='look'">-->
                                <!--<div  class="progressobj">-->
                                    <!--<input type="button" class="IcoNormal" style="float:left;"/>-->
                                    <!--<div class="filename" style="float:left;">-->
                                        <!--合格证-->
                                    <!--</div>-->
                                    <!--<div class="delfile">-->
                                        <!--<a href="javascript:void(0);"-->
                                           <!--v-on:click="download(attach.url,attach.name)">下载</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">付款情况</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>首付已结清</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">免息期到期日</td>
                        <td style="width: 190px">
                            <input type="text" @focus="showDatePicker($event,i)" v-if="pageType=='edit'"/>
                            <span v-else>2018-08-02</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">是否已结清</td>
                        <td style="width: 190px" >
                            <select style="width:190px;"  v-if="pageType=='edit'" type="text">
                                <option  value="是">是</option>
                                <option  value="否">否</option>
                            </select>
                            <span v-else>是</span>
                        </td>
                    </tr>
                    <th colspan="6" style="min-width: 300px;width:1155px;height: 30px;background-color:#F2F2F2"><span
                            style="text-align:center;height:18px">到期款还款计划</span></th>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">到期日期</td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">到期金额</td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">款项类型</td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">收款方</td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">付款日期</td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">付款凭证</td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px">
                            <input type="text" @focus="showDatePicker($event,i)" v-if="pageType=='edit'"/>
                            <span v-else>2018-08-02</span>
                        </td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>100000</span>
                        </td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>分期</span>
                        </td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>滚滚向前集团</span>
                        </td>
                        <td style="width: 190px">
                            <input type="text" @focus="showDatePicker($event,i)" v-if="pageType=='edit'"/>
                            <span v-else>2018-06-02</span>
                        </td>
                        <td style="width: 190px">
                            <div id="divUpload3" >
                                <span >上传附件</span>
                            </div>
                            <!--<div id="divUploadedFiles2" v-if="pageType=='look'">-->
                                <!--<div  class="progressobj">-->
                                    <!--<input type="button" class="IcoNormal" style="float:left;"/>-->
                                    <!--<div class="filename" style="float:left;">-->
                                        <!--付款凭证-->
                                    <!--</div>-->
                                    <!--<div class="delfile">-->
                                        <!--<a href="javascript:void(0);"-->
                                           <!--v-on:click="download(attach.url,attach.name)">下载</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </td>
                    </tr>
                    <th colspan="6" style="min-width: 300px;width:1155px;height: 30px;background-color:#F2F2F2"><span
                            style="text-align:center;height:18px">运输信息</span></th>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">运输公司</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>湖南清源</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">提货地址</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>太原市小店区</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">目的地</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>湖南长沙</span>
                        </td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">运费</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>800</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">其他运费</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>200</span>
                        </td>
                        <td style="width: 190px;color:black;background-color:#F8F8F8">扣款</td>
                        <td style="width: 190px">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>100</span>
                        </td>
                    </tr>
                    <tr style="height:30px" class="td-row2 td-value">
                        <td style="width: 190px;color:black;background-color:#F8F8F8">扣款说明</td>
                        <td style="width: 190px;" colspan="5" class="lineOne">
                            <input type="text"  v-if="pageType=='edit'"/>
                            <span v-else>---</span>
                        </td>
                    </tr>
                </table>


            </div>
        </div>

    </div>

</section>

</body>
<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<script src="/dist/plugins/webuploader-0.1.5/webuploader.min.js"></script>
<script src="/dist/plugins/select2/select2.full.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=0b5caf39"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=0c4d95a9"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script>
    $(function () {
        $("body").on("click", ".lineOne", function (e) {
            if ($(".div-td-content-more").is(":hidden")) {
                var text = $(this).text();
                if (text != "") {
                    text = "<i></i>" + text;
                    $(".div-td-content-more").html(text).css({
                        "width": $(this).outerWidth() + "px",
                        "left": $(this).offset().left,
                        "top": ($(this).offset().top + $(this).outerHeight()) + "px"
                    }).show();
                    e.stopPropagation();
                }
            } else {
                $(".div-td-content-more").hide();
            }
        });
        $("body").on("click", ".div-td-content-more", function (e) {
            e.stopPropagation();
        });
        $("body").on("click", function () {
            $(".div-td-content-more").hide();
        });
    });
</script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            pageType:"",
            id:""
        },
        methods: {
            showDatePicker: function (e, index) {
                var that = this;
                console.log(index)
                WdatePicker({
                    onpicked: function (dp) {
                        that.customer.years = dp.cal.getNewDateStr();
                        return true;
                    }
                });
                $(e.target).blur();
            },
        },
        mounted: function () {
            var that = this;
           that.pageType=$.wyui.page.urlParams.pageType;
            that.id=$.wyui.page.urlParams.id;
            //页面操作状态
            //上传附件
            this.uploader = WebUploader.create({
                // 选完文件后，是否自动上传。
                auto: true,
                // swf文件路径
                swf: "/statics/plugin/webuploader-0.1.5/Uploader.swf",
                // 文件接收服务端。
                server: "http://localhost:8088" + "/importExcel/uploadFile.json",/*正式域名：http://39.106.135.205/jsyf-oa*/
                // 选择文件的按钮。可选。
                // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                pick: '#divUpload,#divUpload1,#divUpload2,#divUpload3',
                duplicate: true
            });
            this.uploader.on("uploadStart", function () {
                $("#progress").show();
            });
            this.uploader.on("uploadComplete", function () {
                $("#progress").hide();
            });
            // 文件上传成功，给item添加成功class, 用样式标记上传成功。
            this.uploader.on('uploadSuccess', function (file, response) {
                alert("上传成功！");
                window.refresh();
            });

            // 文件上传失败，显示上传出错。
            this.uploader.on('uploadError', function (file) {
                alert("上传失败！");
            });
            /*首先显示公司下拉表*/
           /* $.wyui.postMethod('/deviceService/getById.json', {id:$.wyui.page.urlParams.id}, function (r) {
                that.customer = r
            });*/
        }

    })


</script>

</html>